module.exports = (req, res) => {
    let file = req.files
    // console.log(file);
    const baseurl = 'http://127.0.0.1:3000/uploads/'
    let data;
    for (let i in file) {
        var url = file[i].path.split('uploads\\')[1]
        url = baseurl + url
        data={
            name:file[i].name,
            url
        }
    }
    res.send({
        data,
        meta: {
            status: 200,
            msg: '请求成功'
        }
    })
}